[ET Device Support] Add device tensor helper functions to TensorPtr API#18761
[ET Device Support] Add device tensor helper functions to TensorPtr API#18761Gasoonjia wants to merge 2 commits intogh/gasoonjia/162/basefrom
Conversation
Add clone_tensor_ptr_to_device and clone_tensor_ptr_to_cpu to tensor_ptr.h for cloning tensors between host and device memory via DeviceAllocatorRegistry. Extend the existing make_tensor_ptr(const TensorPtr&, ...) overload with optional device_type/device_index parameters (default CPU/0) for seamless device placement. Differential Revision: [D99913077](https://our.internmc.facebook.com/intern/diff/D99913077/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18761
Note: Links to docs will display an error until the docs builds have been completed. ❌ 71 New Failures, 1 Cancelled JobAs of commit 888fdcf with merge base b5ae0b9 ( NEW FAILURES - The following jobs have failed:
CANCELLED JOB - The following job was cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
…TensorPtr API" Add clone_tensor_ptr_to_device and clone_tensor_ptr_to_cpu to tensor_ptr.h for cloning tensors between host and device memory via DeviceAllocatorRegistry. Extend the existing make_tensor_ptr(const TensorPtr&, ...) overload with optional device_type/device_index parameters (default CPU/0) for seamless device placement. Differential Revision: [D99913077](https://our.internmc.facebook.com/intern/diff/D99913077/) [ghstack-poisoned]
digantdesai
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Stack from ghstack (oldest at bottom):
Add clone_tensor_ptr_to_device and clone_tensor_ptr_to_cpu to tensor_ptr.h for cloning tensors between host and device memory via DeviceAllocatorRegistry.
Extend the existing make_tensor_ptr(const TensorPtr&, ...) overload with optional device_type/device_index parameters (default CPU/0) for seamless device placement.
Differential Revision: D99913077